﻿<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh_CN">
<head>
<%@ include file="../common/header.jsp"%>
<script type="text/javascript" src="/js/My97DatePicker/WdatePicker.js"></script>
</head>
<body>

	<div class="container " style="margin-top: 20px">
		<%@ include file="../common/top.jsp"%>

		<div class="row">
			<div class="col-sm-3">
				<c:set var="menu" value="department" />
				<%@ include file="../common/menu.jsp"%>
			</div>
			<div class="col-sm-9">
				<div class="row">
					<div class="col-sm-12">
						<h1 class="page-head-line">部门管理</h1>
					</div>
				</div>
				<form class="form-inline" id="searchForm" action="/department/list.do"
					method="post">
					<input type="hidden" name="currentPage" id="currentPage" value="1">
					<a href="/department/input.do" class="btn btn-success inputBtn">
						<span class="glyphicon glyphicon-plus"></span> 添加
					</a>
				</form>

				<table class="table table-striped table-hover">
					<tr>
						<th>编号</th>
						<th>部门名称</th>
						<th>部门编码</th>
						<th>操作</th>
					</tr>

					<c:forEach var="entity" items="${pageInfo.list}">
						<tr>
							<td>${entity.id}</td>
							<td>${entity.name}</td>
							<td>${entity.sn }</td>
							<td>
								<a href="/department/input.do?id=${entity.id }" class="btn btn-info btn-xs inputBtn" data-json='${entity.json}'> 
									<span class="glyphicon glyphicon-pencil"></span> 编辑
								</a>
                                <a href="/department/delete.do?id=${entity.id }" role="button" class="btn btn-warning btn-xs trashBtn" data-json='${entity.json}'>
                                    <span class="glyphicon glyphicon-trash"></span> 删除
                                </a>
							</td>
						</tr>
					</c:forEach>

				</table>

				<%@ include file="../common/page.jsp"%>
			</div>
		</div>
	</div>
<script>
	$(function() {
	}
</script>
</body>
</html>